package example.registerbean;

import org.springframework.stereotype.Component;

@Component("classWithComponent")
public class ClassWithComponent {
	public void out () {
		System.out.println("这个类是加了@Componet注解");
	}
}
